package com.violet.base.server.dic.service.impl;

import com.violet.base.api.dic.condiftion.DictTypeCondition;
import com.violet.base.api.dic.dto.DicTypeDTO;
import com.violet.base.api.dic.service.DictTypeApiService;
import com.violet.base.server.dic.service.DictTypeService;
import com.violet.common.page.PageParam;
import com.violet.common.page.PageResult;
import com.violet.common.page.SortParam;
import org.apache.dubbo.config.annotation.DubboService;

import javax.annotation.Resource;

/**
 * @Author: wqf
 * @Date: 2022/10/28
 * @Description:
 */
@DubboService
public class DictTypeApiServiceImpl implements DictTypeApiService {

    @Resource
    private DictTypeService dictTypeService;


    /**
     * 方法描述: 分页查询字典类型
     *
     * @param condition 查询入参
     * @param pageParam 分页参数
     * @param sortParam 排序入参
     * @return cn.hutool.db.PageResult<com.violet.base.api.dic.dto.DicTypeDTO>
     * @author wqf
     * @date 2022/10/28 16:41
     */
    @Override
    public PageResult<DicTypeDTO> listDictType(DictTypeCondition condition, PageParam pageParam, SortParam sortParam) {
        return dictTypeService.listDictType(condition, pageParam, sortParam);
    }
}
